package com.grouponmall.service;

import java.util.List;

import com.grouponmall.model.Deal;

public interface DealService {

  void addDeal(Deal deal);

  void delDeal(String city, String title);

  List<String> getCities();

  Deal getDealById(long id);

  List<Deal> getDealsByCity(String city, Integer index, Integer pageSize);

  List<Deal> getDealsByPagination(Integer index, Integer pageSize);

  List<Deal> getDealsBySource(String source);

  List<Deal> getLatestDeals();

  void updateDeal(Deal deal);

}
